import {Base} from '../../utils/base';
class Home extends Base{
    constructor(){
        super();
    }
    getBannerDate(callback){
        var that = this;
        var param = {
            url:'banner/1',
            sCallBack:(res=>{
                var data = res.items;
              callback && callback(data);
            })
        };
        this.request(param);
    }
    //首页主题
    getThemeData(cb){
        var param = {
            url: 'theme?ids=1,2,3',
            sCallBack: (res=>{
                cb && cb(res);
            })
        };
        this.request(param);
    }
//    部分商品主题
    getProductorData(cb){
        var parm = {
            url:'product/recent',
            sCallBack:(res=>{
                cb && cb(res);
            })
        }
        this.request(parm)
    }

}
//表示输出home.js文件
export {Home}